<%--
    Document   : examauto1
    Created on : 2012-3-28, 10:26:41
    Author     : xiaoxiao
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="s"  uri="/struts-tags"%>
<style type="text/css">
    p {font: bold 15px 宋体;}
    div{font-family: 宋体;font-size: 15px}
</style>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>自动出卷</title>
    </head>
    <body>
        <%
                    response.setContentType("application/doc");
                    response.setHeader("Content-Disposition", "inline; filename=\"exam.doc\"");
        %>

        <center><b><h3><s:property value="%{exam.name}"></s:property></h3></b></center>
        <%  out.println("<br/>");%>
        <% int i = 0;%>
        <p>
            <b>一、单选题 </b>
        </p>
        <div>
            <s:iterator value="autodanxuan" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property> (  <%  out.print("&nbsp;&nbsp;");%>    )
                <%  out.println("<br/>");%>
                A.<s:property value="a"></s:property>
                <%  out.println("<br/>");%>
                B.<s:property value="b"></s:property>
                <%  out.println("<br/>");%>
                C.<s:property value="c"></s:property>
                <%  out.println("<br/>");%>
                D.<s:property value="d"></s:property>
                <%  out.println("<br/>");%>
                <%  out.println("<br/>");%>
            </s:iterator>
        </div>
        <p>
            <b>二、多选题</b>
        </p>
        <%  i = 0;%>
        <div>
            <s:iterator value="autoduoxuan" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property> (  <%  out.print("&nbsp;&nbsp;");%>    )
                <%  out.println("<br>");%>
                A.<s:property value="a"></s:property>
                <%  out.println("<br>");%>
                B.<s:property value="b"></s:property>
                <%  out.println("<br>");%>
                C.<s:property value="c"></s:property>
                <%  out.println("<br>");%>
                D.<s:property value="d"></s:property>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
            </s:iterator>
        </div>
        <p>
            <b> 三、判断题</b>
        </p>
        <% i = 0;%>
        <div>
            <s:iterator value="autojudge" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property> (  <%  out.print("&nbsp;&nbsp;");%>    )
                <%  out.println("<br>");%>
            </s:iterator>
        </div>
        <p>
            <b> 四、主观题</b>
        </p>
        <% i = 0;%>
        <div>
            <s:iterator value="autoquestion" status="st">
                <% i = i + 1;%>
                <%=i%>.<s:property value="name"></s:property>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
                <%  out.println("<br>");%>
            </s:iterator>
        </div>

        <%  out.println("<br>");%>
        <%  out.println("<br>");%>

        <s:property value="%{exam.name}"></s:property>（答案）

        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        <%  i = 0;%>
        一、单选题
        <%  out.println("<br>");%>
        <s:iterator value="autodanxuan" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.print("&nbsp;");%>
        </s:iterator>
        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        二、 多选题
        <%  out.println("<br>");%>
        <%  i = 0;%>
        <s:iterator value="autoduoxuan" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.print("&nbsp;");%>
        </s:iterator>
        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        三、判断题
        <%  out.println("<br>");%>
        <% i = 0;%>
        <s:iterator value="autojudge" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.print("&nbsp;");%>
        </s:iterator>
        <%  out.println("<br>");%>
        <%  out.println("<br>");%>
        四、 主观题
        <%  out.println("<br>");%>
        <% i = 0;%>
        <s:iterator value="autoquestion" status="st">
            <% i = i + 1;%>
            <%=i%>、<s:property value="answer"></s:property>
            <%  out.println("<br>");%>
            <%  out.println("<br>");%>
        </s:iterator>

    </body>
</html>
